<?php

namespace common\traits\relation;

/**
 * Description of Constants
 *
 * @author emhome
 */
trait UserData {

    /**
     * 用户基本信息
     * @return user
     */
    public function getUser() {
        return $this->hasOne(\common\logics\UserLogic::className(), ['id' => 'user_id']);
    }

    /**
     * 用户基本信息
     * @return user
     */
    public function getUserCell() {
        return $this->hasOne(\common\logics\UserCellLogic::className(), ['id' => 'user_id']);
    }

    /**
     * 用户基本信息
     * @return user
     */
    public function getUserText() {
        return $this->hasOne(\common\logics\UserTextLogic::className(), ['id' => 'user_id']);
    }

    /**
     * 用户基本信息
     * @return user
     */
    public function getUserMin() {
        return $this->hasOne(\common\logics\UserMinLogic::className(), ['id' => 'user_id']);
    }

}
